import 'package:flutter/material.dart';

class ScrollCase extends StatelessWidget{
  const ScrollCase({super.key});
  @override
  Widget build(BuildContext context) {
    
return SingleChildScrollView(
  //垂直滚动
  //scrollDirection: Axis.vertical,
scrollDirection: Axis.vertical,
child: Column(children: [1,2,3,4,5,6,7,8,9,10].map((int item){
  return  Container(
    height: 100,
    margin: const EdgeInsets.all(10),
    width: double.infinity,
    color: Colors.red,
    child: Text(item.toString()),
  );
}).toList()
,)
);
  }

}
